<template>
  <view class="expert-article">
    <view class="article-card"></view>
    <view class="article-label">
      长按图片保存到相册分享
    </view>
    <view class="article-menu">
      <view class="menu-nav" v-for="item,index in menuList" :key="index" @click="onMenu(item.type)">
        <image :src="item.img" mode=""></image>
        <view class="">{{item.title}}</view>
      </view>
    </view>
    <view class="article-user">
      <u-tabs :list="list1" lineColor="#313131" :activeStyle="{color: '#313131',fontSize: '32rpx'}"
        :inactiveStyle="{color: '#909090',fontSize: '28rpx',}">
        <view slot="right" style="font-size: 28rpx; color: #2F7EFC;">
          总:288金币
        </view>
      </u-tabs>
      <view class="article-list">
        <view class="article-nav">
          <image src="../../../static/icon/userPage/promotion2.png" mode=""></image>
          <view class="nav-name">余庆</view>
          <view class="nav-timer">2024-1-10 12:09:22</view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        menuList: [{
          img: '../../../static/icon/specialcolumnPage/detail.png',
          title: '查看详情',
          type: 1
        }, {
          img: '../../../static/icon/specialcolumnPage/notice.png',
          title: '通知成员',
          type: 1
        }, {
          img: '../../../static/icon/specialcolumnPage/renew.png',
          title: '更新内容',
          type: 1
        }, {
          img: '../../../static/icon/specialcolumnPage/still-more.png',
          title: '更多',
          type: 1
        }],
        list1: [{
          name: '阅读',
        }, {
          name: '付费',
        }]
      }
    }
  }
</script>

<style lang="less" scoped>
  .expert-article {
    box-sizing: border-box;
    padding: 40rpx 30rpx;
    display: flex;
    flex-direction: column;
    align-items: center;

    .article-card {
      width: 690rpx;
      height: 620rpx;
      background: rgba(224, 224, 224);
      border-radius: 10rpx;
    }

    .article-label {
      font-size: 32rpx;
      font-weight: 500;
      color: #313131;
      margin-top: 30rpx;
    }

    .article-menu {
      width: 690rpx;
      height: 180rpx;
      background: rgba(255, 255, 255);
      box-shadow: 0rpx 2rpx 20rpx rgba(161, 161, 161, 0.16);
      border-radius: 10rpx;
      margin-top: 30rpx;
      box-sizing: border-box;
      padding: 0 66rpx;
      display: flex;
      justify-content: space-between;

      .menu-nav {
        box-sizing: border-box;
        padding: 36rpx 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 24rpx;
        font-weight: 500;
        color: #909090;

        image {
          height: 68rpx;
          width: 68rpx;
        }

        :last-child {
          margin-top: 6rpx;
        }
      }
    }

    .article-user {
      margin-top: 20rpx;
      width: 100%;
      background-color: #fff;
      box-sizing: border-box;
      padding: 0 30rpx;
      .article-list{
        .article-nav{
          height: 104rpx;
          width: 100%;
          display: flex;
          align-items: center;
          image{
            height: 74rpx;
            width: 74rpx;
            border-radius: 10rpx;
          }
          .nav-name{
            font-size: 28rpx;
            font-family: PingFang SC;
            line-height: 40rpx;
            color: #1C1C1C;
            flex: 1;
            margin-left: 10rpx;
          }
          .nav-timer{
            font-size: 24rpx;
            font-weight: 400;
            color: #909090;
          }
        }
      }
    }
  }
</style>